#
# Be sure to run `pod lib lint YHCategory.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'YHCategory'
  s.version          = '0.1.0'
  s.summary          = 'A short description of YHCategory.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/lnn/YHCategory'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '林宁宁' => 'linningning@98du.com' }
  s.source           = { :git => 'https://gitee.com/lnn/YHCategory.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'
  
  s.subspec 'Foundation' do |cs|
    cs.source_files = 'YHCategory/Classes/Foundation/**/*'
    
    cs.dependency 'YHStyle'
    cs.dependency 'YHHUD'
    cs.dependency 'YHConstant'
    cs.dependency 'KVOController'
  end
  
  s.subspec 'UIKit' do |cs|

    cs.subspec 'View' do |ccs|
      ccs.source_files = 'YHCategory/Classes/UIKit/View/**/*'
    end
    
    cs.subspec 'Control' do |ccs|
      ccs.source_files = 'YHCategory/Classes/UIKit/Control/**/*'
    end
    
    cs.subspec 'Input' do |ccs|
      ccs.source_files = 'YHCategory/Classes/UIKit/Input/**/*'
      
      ccs.dependency 'YHCategory/UIKit/Control'
      ccs.dependency 'YHCategory/UIKit/View'
    end
    
    cs.subspec 'Image' do |ccs|
      ccs.source_files = 'YHCategory/Classes/UIKit/Image/**/*'
    end
    
    cs.subspec 'WebImage' do |ccs|
      ccs.source_files = 'YHCategory/Classes/UIKit/WebImage/**/*'
    
      ccs.dependency 'YHConstant'
      ccs.dependency 'YHCategory/UIKit/Image'
      ccs.dependency 'SDWebImage'
    end
    
    cs.subspec 'Label' do |ccs|
      ccs.source_files = 'YHCategory/Classes/UIKit/Label/**/*'
    end
    
    cs.subspec 'ScrollView' do |ccs|
      ccs.source_files = 'YHCategory/Classes/UIKit/ScrollView/**/*'
      
      ccs.dependency 'DZNEmptyDataSet'
    end
    
    cs.subspec 'ViewController' do |ccs|
      ccs.source_files = 'YHCategory/Classes/UIKit/ViewController/**/*'
    end
    
    cs.dependency 'YHCategory/Foundation'
    
  end
  
  
  
  # s.resource_bundles = {
  #   'YHCategory' => ['YHCategory/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
  
#  s.dependency 'KVOController'
  
#  s.dependency 'SDWebImage'
#  s.dependency 'Masonry'
#  s.dependency 'MJRefresh'
#  s.dependency 'DZNEmptyDataSet'
#
#  s.dependency 'YHConstant'
end
